[]
Sorts all the columns in the sheet according to the specified parameters.
public bool SortColumns(int keyRow, bool ascending)
Public Function SortColumns(keyRow As Integer, ascending As Boolean) As Boolean
Type | Name | Description |
---|---|---|
int | keyRow | Row whose values are compared during sorting |
bool | ascending | Whether the sort is ascending |
Type | Description |
---|---|
bool |
Sorts all the columns in the sheet according to the specified parameters.
public bool SortColumns(int keyRow, bool ascending, IComparer comparer)
Public Function SortColumns(keyRow As Integer, ascending As Boolean, comparer As IComparer) As Boolean
Type | Name | Description |
---|---|---|
int | keyRow | Row whose values are compared during sorting |
bool | ascending | Whether the sort is ascending |
IComparer | comparer | IComparer object used to compare the values |
Type | Description |
---|---|
bool |
Sorts a range of columns in the sheet according to the specified parameters.
public bool SortColumns(int column, int columnCount, SortInfo[] sortInfo)
Public Function SortColumns(column As Integer, columnCount As Integer, sortInfo As SortInfo()) As Boolean
Type | Name | Description |
---|---|---|
int | column | Starting column index (the start of the range of columns to sort) |
int | columnCount | Number of columns in the range to sort |
SortInfo[] | sortInfo | Array of SortInfo objects that contain the row indexes and the order of sorting |
Type | Description |
---|---|
bool |